﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_CookAddUpdate.ascx.cs" Inherits="Stationery.UC.UC_CookAddUpdate" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dxuc" %>
<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dxhe" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
    
<table cellpadding="0" cellspacing="5" width="100%" border="0">
    <tr>
        <td style="width:150px">
            <dxe:ASPxLabel ID="ASPxLabel1" runat="server" Text="Tiêu đề">
            </dxe:ASPxLabel>
        </td>
        <td>
            <dxe:ASPxTextBox ID="ASPxTextBoxTitle" runat="server" Width="600px">
                <ValidationSettings CausesValidation="True" Display="Dynamic">
                    <RequiredField IsRequired="True" />
                </ValidationSettings>
            </dxe:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td colspan = "2">
            <dxe:ASPxLabel ID="ASPxLabel2" runat="server" Text="Mô tả">
            </dxe:ASPxLabel>
        </td>
     </tr>
     <tr>
        <td colspan="2">
            <dxhe:ASPxHtmlEditor ID="ASPxHtmlEditorCookDesc" runat="server" Height="400px" 
                Width="100%">
                <SettingsImageUpload UploadImageFolder="~/Image/Upload/Cook/">
                    <ValidationSettings AllowedContentTypes="image/jpeg,image/pjpeg,image/gif,image/png,image/x-png">
                    </ValidationSettings>
                </SettingsImageUpload>
            </dxhe:ASPxHtmlEditor>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <dxe:ASPxLabel ID="ASPxLabel3" runat="server" Text="Nội dung">
            </dxe:ASPxLabel>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <dxhe:ASPxHtmlEditor ID="ASPxHtmlEditorCookDetail" runat="server" Height="400px" 
                Width="100%">
                <SettingsImageUpload UploadImageFolder="~/Image/Upload/Cook/">
                    <ValidationSettings AllowedContentTypes="image/jpeg,image/pjpeg,image/gif,image/png,image/x-png">
                    </ValidationSettings>
                </SettingsImageUpload>
            </dxhe:ASPxHtmlEditor>
        </td>
    </tr>
    <tr>
        <td>
            <dxe:ASPxLabel ID="ASPxLabel4" runat="server" Text="Hình ảnh">
            </dxe:ASPxLabel>
        </td>
        <td>
            <%--<dxuc:ASPxUploadControl ID="ASPxUploadControlImage" runat="server" Width="300px">
            </dxuc:ASPxUploadControl>--%>
            <asp:FileUpload ID="ASPxUploadControlImage" runat="server" Width="300px" />
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            <dxe:ASPxBinaryImage ID="ASPxBinaryImageData" runat="server" Width="130px" Height="100px">
            </dxe:ASPxBinaryImage>
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            <dxe:ASPxLabel ID="ASPxLabelException" runat="server" Text="" Font-Bold="True" 
            Font-Names="Arial" ForeColor="Red">
            </dxe:ASPxLabel>
        </td>
    </tr>   
    <tr>
        <td align="right">
            <dxe:ASPxButton ID="ASPxButtonAccept" runat="server" Text="Chấp nhận" 
                onclick="ASPxButtonAccept_Click" >
            </dxe:ASPxButton>
        </td>
        <td align="left">
            <dxe:ASPxButton ID="ASPxButtonCancel" runat="server" Text="Hủy" 
                onclick="ASPxButtonCancel_Click">
            </dxe:ASPxButton>
        </td>
    </tr>
</table>